import {hot} from "react-hot-loader/root";
import React from 'react';
import logo from './logo.svg';
import './App.css';
import './css/base.less'
import CSSModule from "./components/CSSModule";

import {setConfig} from "react-hot-loader";

setConfig({
  reloadHooks: true
  // reloadLifeCycleHooks: true,
  // trackTailUpdates: false
});

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />

        <CSSModule/>

        <p>
          Edit <code>src/App.tsx</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}
export default process.env.NODE_ENV === "development" ? hot(App) : App;
